import 'package:flutter/material.dart';

import 'cjeb_page.dart';
import 'xbb_page.dart';
import 'zfb_page.dart';

class PhbTabBarViewPage extends StatefulWidget {
  @override
  _PhbTabBarViewPageState createState() => _PhbTabBarViewPageState();
}

class _PhbTabBarViewPageState extends State<PhbTabBarViewPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 600 + 44 + 30.0,
      child: DefaultTabController(
        length:3,
        child:Column(
          children: [
            Container(
              height: 44,
              child: TabBar(
                labelColor:Colors.blue,
                unselectedLabelColor: Colors.grey,
                tabs: <Widget>[
                  Tab(text: "涨幅榜",),
                  Tab(text: "成交额榜"),
                  Tab(text: "新币榜"),
                ],
              ),
            ),
            Expanded(
              child: TabBarView(
                children: <Widget>[
                  ZfbPage(),
                  CjebPage(),
                  XbbPage()
                ],
              ),
            ),
          ],
        )),);
  }


}
